#include <stdio.h>

int main(){
	int n
	int sum
	int max
	int min
	while n!=0{
		scanf("%d",&n)
		
	}	
}
